package net.kuratkoo.jidelnicekvut;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;

public class DatabaseAdapter {

    private static final String TAG = "JidelnicekVUT|DatabaseAdapter";
    private DatabaseHelper databaseHelper;
    private SQLiteDatabase db;

    DatabaseAdapter(Context context) {
        this.databaseHelper = new DatabaseHelper(context);
        this.db = this.databaseHelper.getWritableDatabase();
    }

    SQLiteDatabase getDb() {
        return this.db;
    }

    void close() {
        databaseHelper.close();
    }
}
